package com.gticket.buyticket.handler;

import com.gticket.buyticket.pojo.ActualSeat;
import com.gticket.buyticket.pojo.FilmSchedule;
import com.gticket.buyticket.service.ActualSeatService;
import lombok.Data;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Data
@RestController
public class ActualSeatHandler {

    @Resource
    private ActualSeatService actualSeatService;

    ////查询座位布局｛电影布局页面｝
	@CrossOrigin(origins = "*")
    @GetMapping("/actualseat")
    public ActualSeat getSeatLayout(ActualSeat actualSeat){
        return  actualSeatService.getSeatLayout(actualSeat);
    }

}
